module inst_rom#(
  parameter DEPTH = 1024
) (
  input      [31:0] imem_addr,
  output reg [31:0] imem_data
);

  localparam WordBytes = 4;
  localparam AddrAlign = $clog2(WordBytes);
  localparam AddrWidth = $clog2(DEPTH);

  // TODO: initial rom data
  reg [31:0] rom [0:DEPTH-1];

  always @(*) begin
    imem_data = rom[imem_addr[AddrAlign+AddrWidth-1:AddrAlign]];
  end

endmodule

